class Product < ActiveRecord::Base
  has_and_belongs_to_many :posts, :uniq => true
  has_and_belongs_to_many :stores, :uniq => true
  has_and_belongs_to_many :users, :uniq => true
  
  def display_price
    if price
      "$#{price}"
    end
  end
  
  def full_name
    "#{retailer} #{name}"
  end
end
